<?php
$get_blogdetail =  $inancm->select_db("select * from inancm_blog inner join inancm_category on inancm_blog.cat_id = inancm_category.cat_id where blog_id = $bid");
$date = date_create($get_blogdetail[0]['datetime']);
$date_show = date_format($date, 'F jS Y');
?>
    <!-- Start Main Body Wrap -->
    <div id="main-wrap">
        
        <!-- Start Left Section -->
        <div class="leftsection leftsectionalt">        
        	
        	<!-- Start Blog Post -->
        	<div class="blogwrapstart">
            
            	<div class="blogtitle"><h3><a href="?page=<?=$page?>&bid=<?=$get_blogdetail[0]['blog_id'];?>" title="<?=$get_blogdetail[0]['blog_title'];?>">
					<?=$get_blogdetail[0]['blog_title'];?></a></h3></div>
                
                <div class="blogbody">                	
                	<div class="blogimage"><a href="?page=<?=$page?>&bid=<?=$get_blogdetail[0]['blog_id'];?>">
                    	<img src="images/blog/<?=$get_blogdetail[0]['blog_image'];?>" alt="<?=$get_blogdetail[0]['blog_title'];?>"></a></div>

                    <div class="bloginfo">                    
                   	  <p class="usericon">Posted By: <span><?=$get_blogdetail[0]['blog_post'];?></span></p>
                      <p class="calendericon">On: <span><?=$date_show;?></span></p>
                      <p class="settingsicon">Category: <span>Loremipsom</span></p>
                      <p class="tagicon">Tags: <span><?=$get_blogdetail[0]['blog_tag'];?></span></p>                    
                    </div>
                  
                    <div class="blogtext">                    
                    	<p><?=$get_blogdetail[0]['blog_des'];?></p>
						<p><?=$get_blogdetail[0]['blog_detail'];?></p>                    
                    </div>
                </div>                
                <span class="box-arrow"></span>            
            </div>
            <!-- End Blog Post -->
            
        	<!-- Start Blog Post -->
        	<div class="blogwrap">            
            	<div class="blogcommenttitle"><h3>Comments</h3></div>
                <span class="box-arrow"></span>            
            </div>
            <!-- End Blog Post -->
            <!-- Start Blog Comments -->
            <div class="blogcomment">            
           	
            
            </div>
            <!-- End Blog Comments -->

        </div>
        <!-- End Left Section -->
        
        <!-- Start Right Section -->
        <?php include ('modules/mod_blog/blog.right.php'); ?>
        <!-- End Right Section -->
    
    </div>
    <!-- End Main Body Wrap -->

